package com.powernode.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 阿里云短信服务配置类
 */
@ApiModel("阿里云短信服务配置类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "aliyun.message")
@RefreshScope
public class AliyunMessageConfig {

    @ApiModelProperty("服务访问ID")
    private String accessKeyId;

    @ApiModelProperty("服务访问密钥")
    private String accessKeySecret;

    @ApiModelProperty("短信签名")
    private String signName;

    @ApiModelProperty("短信模版code")
    private String templateCode;

}
